<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

		<title>玄集</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<script type="text/javascript" src=" js/jquery.js"> </script>
		<script type="text/javascript" src="js/area.js"> </script>
		<script type="text/javascript" src="js/floatMsg.js"> </script>
		<script type="text/javascript" src="js/sysutil.js"> </script>
	    <script type="text/javascript" src="js/bottomDropDown.js" > </script>
		<script type="text/javascript" src="js/common.js" > </script>
		<script src="https://unpkg.com/mqtt/dist/mqtt.min.js"></script>
	    <script type="text/javascript" src="js/mqttMessage.js" > </script>

	<!--//加载WeUI-->
	<link rel="stylesheet" href="css/weui.css">
	<link rel="stylesheet" href="css/weuix.css">
	<script type="text/javascript" src="js/zepto.weui.js"></script>
	<script type="text/javascript" src="js/zepto.min.js"></script>



	<link rel="stylesheet" href="css/swiper-bundle.min.css">
	<script src="js/swiper-bundle.min.js" > </script>
	<!--// 压缩后的文件引入-->
	<script src="https://unpkg.com/better-scroll@latest/dist/better-scroll.js"></script>
		 <style type="text/css">
		 body{
		 margin: 0;
		 }
	 	.title_top>p{
	 		float: left;
	 		margin:8px;
	 	}
	 	.title_top>p>a{
	 		text-decoration: none;
	 	}
 	 	.title_top>p>a>img{
 	 	  
 	 	  width:25px;
 	 	}
	 	.title_top p:last-child{
	 		float: right;
	 		margin-right:10px;
	 	}
		 	
	 	.title_top>p:first-child {
	 		margin-left:10px;
	 	}
	 	.title_top{
	    	margin:0  ;
	    	padding:0;
	 		height: 40px;
	 		line-height: 10px; 
	 		/*border-bottom: 1px #777 solid;*/
	 		box-shadow: 1px 1px 2px #888888;
	 		border-radius: 5px;
	 		width:100%;
	 		position:fixed;
	 		top:0px;
	 		background-color:white;
	 	}
		.menu_bar{
			position: fixed;
			display: flex;
			bottom: 0px;
			background-color: #dddddd;
			width: 100%;
			height: 40px;
			line-height: 40px;
			/*border:1px solid blue;*/
			z-index: 9999;

		}
		.menu_bar_left{
			width:20%;
			text-align: center;
			/*height: 40px;*/
			/*line-height: 40px;*/
			/*border:1px red solid;*/
		}
		 .menu_bar_left img{
			 width:16px;
			 height: 16px;
			 margin-bottom: -4px;
		 }
		 .menu_bar_middle{
			 width:60%;
			 text-align: center;
		 }
		 .menu_bar_middle img{
			 width:20px;
			 height: 20px;
			 margin-bottom: -6px;
		 }
		 .menu_bar_right{
			 width:20%;
			 text-align: center;
		 }
		 .menu_bar_right img{
			 width:16px;
			 height: 16px;
			 margin-bottom: -4px;
		 }
	 	#main_context {
	 	  margin-top:0px;
	 	}
		 </style>
</head>
 
	 
<body>
<!-- <a href="javascript:server.loadindex('order','1');">			<img src="img/index.png" alt="主页" /></a> -->
     <!--<div  class="title_top"><p> <a href="javascript:server.loadindex('qbOrder','');">			<img src="img/index.png" alt="历史订单" /></a> </p>     <p><a href="javascript:server.lastPage()">			<img src="img/back.png" alt="返回" /></a></p></div>-->
<!--隐藏菜单 ，随时可以打开-->
<div class="menu_bar" id="index_nav">
	<div class="menu_bar_left"><a href="javascript:server.lastPage()"><img src="img/left.png" alt="返回" /></a></div><div class="menu_bar_middle"  onclick="server.loadindex('page/home/home');"> <img src="img/home.png"></div><div class="menu_bar_right"><a href="javascript:server.nextPage()"><img src="img/right.png" alt="前进" /></a></div>
</div>
<script>
	// $("#tohome").on("click",function () {
	// 	server.loadindex("page/home/home");
    // });

    var showNav=true; //是否显示导航栏
    //设置导航栏的隐藏和显示
    function setNav(){
        // alert("show");
        if(showNav){
            showNav = false;
            document.getElementById("index_nav").style.visibility="hidden";
            var mn = document.getElementById("mn");
            if(mn)
            document.getElementById("mn").style.bottom = "0px";
        }else{
            showNav = true;
            document.getElementById("index_nav").style.visibility="visible";
            var mn = document.getElementById("mn");
            if(mn)
            document.getElementById("mn").style.bottom = "40px";
        }

    }

	function hideNavigator() {

        console.log(window.location.hash)
		var wlh=window.location.hash.substring(2);
        console.log(wlh)
        if(wlh!='page/home/home' && wlh!='page/quickask/quickask' && wlh!='page/askteacher/askteacher' && wlh!='page/user/user')
            $("#index_nav").show();

        else
            $("#index_nav").hide();
	}

	</script>
<div  id="main_context">
 	 <script>
 
    	var i=window.location.hash.substr(2);

        server.setCache("pageName",window.location.href.split('#')[0]);
    	if(!server.isEmpty(i)) {
    		server.Stack.push(i+"-,-"+window.location.search);
    		server.loadpage(i);
    	}else{
    		server.Stack.push(server.index+"-,-"+"");
         	server.loadpage(server.index);
    	}



 	 </script>
 	 </div>
</body>
	
</html>